﻿
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sproc_Flow_GetDocumentAttach]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[sproc_Flow_GetDocumentAttach];
GO
CREATE PROCEDURE [dbo].[sproc_Flow_GetDocumentAttach]
    @DocID int
AS

SELECT * 
    FROM    uds_flow_files
    WHERE DocID = @DocID